﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScoringClient.ViewModels
{
    class MainWindowViewModel : ViewModelBase
    {
        #region Title
        private string title;
        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                if (value == title) return;
                title = value;
                OnPropertyChanged("Title");
            }
        }
        #endregion

        #region Height
        private double height;
        public double Height
        {
            get
            {
                return height;
            }
            set
            {
                if (value == height || value <= 0) return;
                height = value;
                OnPropertyChanged("Height");
            }
        }
        #endregion

        #region Width
        private double width;
        public double Width
        {
            get
            {
                return width;
            }
            set
            {
                if (value == width || value <= 0) return;
                width = value;
                OnPropertyChanged("Width");
            }
        }
        #endregion

        internal MainWindowViewModel()
        {
            this.Title = string.Empty;
            this.Height = 0;
            this.Width = 0;
        }
    }
}
